﻿/****************************** Module Header ******************************\
 * Module Name:  MessageBoxHelper.cs
 * Module Version:  1.0.0 (2013-6-26)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This class is used for MenuItemRender. 
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UCL.Forms
{
    /// <summary>
    /// 对话框助手类
    /// <para>2013-6-26 by sutroon</para>
    /// </summary>
    public class MessageBoxHelper
    {
        public static void ConfirmOpenFolder(string path, string msg = "导出成功,是否打开保存目录?", string title = "提示")
        {
            if (DialogResult.OK != MessageBox.Show(msg, title, MessageBoxButtons.OKCancel)) return;
            FileHelper.OpenFolder(path);
        }
    }
}
